home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 29
/
Volume 29 - JOGO DISK .iso
/
Games
/
jungle_adventure.swf
/
scripts
/
__Packages
/
GamePoint.as
< prev
next >
Wrap
Text File
|
2006-11-29
|
588b
|
26 lines
class GamePoint extends GameCollectable
{
var assetID = "point";
var soundID = "point";
var value = 10;
var editor_isItem = true;
var editor_name = "GamePoint";
function GamePoint(value)
{
super();
}
function onAddToWorld()
{
!this.world[this.assetID] ? (this.world[this.assetID] = 1) : this.world[this.assetID]++;
}
function setCollected(obj)
{
if(!obj.shiftScore(this.value))
{
return undefined;
}
GameSound.playSound(this.soundID);
this.world.removeObject(this);
}
}